<?php
/**
 * BasicPHP
 *
 * This class contains functions that enable config files to be managed.
 * The configs are organized as a .ini file.
 *
 * @example
 * 	The config file(example.ini) likes:
 *		; The first section.
 * 		[first]
 * 			key_1_1 = value_1_1;
 *			key_1_2 = value_1_2;
 *		; The second section.
 * 		[second]
 *		 	key_2_1 = value_2_1;
 *			key_2_2 = value_2_2;
 *
 * 	And you get the "value_2_1" as:
 * 		<?php $conf_2_1 = Config::get("key_2_1", "second"); ?>
 *
 * @package		runtime.core
 * @author		Jiajun.Gao
 * @email		gaosboy@gmail.com
 *
 */

class Config {
	static private $_confArray = array();
	/**
	 * @desc	Get the config value by key and group name, if neighter parameter are given, return the whole config.
	 * @param	string			$key		the key name of the config.
	 * @param	string			$group		the group of the key, empty by default.
	 * @return	string|array	$value		the value of the config, could be a string or an array.
	 *
	 */
	static public get($key = '', $group = '') {

	}
}

